package com.ming.zhihuWebSpider.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import us.codecraft.webmagic.model.annotation.HelpUrl;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@JsonInclude(JsonInclude.Include.NON_NULL)
@HelpUrl(value="https://www.douyu.com/g_LOL")
//@TargetUrl(value="https://www.douyu.com/g_LOL")
@Table(name = "douyu_user_info")
public class DouyuLolInfo {
    /**
     * ID
     */
    @Id
    @Column(name = "id")
    private Integer id;

    /**
     * title
     */
    @Column(name = "title")
    private String title;

    /**
     * 地址
     */
    @Column(name = "url")
    private String url;

    @Column(name = "name")
    private String name;

    @Column(name = "time")
    private Date time;

    @Column(name = "type")
    private String type;

    @Column(name = "del")
    private Integer del;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
